06. n-Queens Heuristic Function
n-Queens Heuristic Function
INSTRUCTOR NOTE:
Notice that "attacks" are counted differently than standard chess rules because we include pairs of queens as an "attack" even if another queen is between the pair.
n-Queens Heuristic Function
Notice that "attacks" are counted differently than standard chess rules because we include pairs of queens as an "attack" even if another queen is between the pair.